package com.yuexun.dhdoctor.module.mythings.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.base.bean.model.HelpFileBean;
import com.yuexun.dhdoctor.module.mythings.bean.AnnualLeaveBean;
import com.yuexun.dhdoctor.module.mythings.bean.BackMemberData;
import com.yuexun.dhdoctor.module.mythings.bean.FeedBackResultBean;
import com.yuexun.dhdoctor.module.mythings.bean.FlowMemberData;
import com.yuexun.dhdoctor.module.mythings.bean.SignDtlData;
import com.yuexun.dhdoctor.module.mythings.bean.TaskData;
import com.yuexun.dhdoctor.module.mythings.bean.TaskListData;
import com.yuexun.dhdoctor.module.mythings.bean.TaskMainBean;
import com.yuexun.dhdoctor.module.mythings.bean.TypeData;
import com.yuexun.dhdoctor.module.mythings.bean.WhiteData;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2016/7/27.
 */
public interface ThingApi {
    //我的事项列表信息-我发起的
    @FormUrlEncoded
    @POST("inquireUserTaskList.json?")
    Observable<TaskData> getTaskDatas(@FieldMap Map<String, String> praise);

    //我的事项列表信息-其他3样
    @FormUrlEncoded
    @POST("inquireTaskListForMyself.json?")
    Observable<TaskListData> getOtherTaskDatas(@FieldMap Map<String, String> praise);

    //我的事项列表信息-抄送我的
    @FormUrlEncoded
    @POST("inquireUserTaskCarbonList.json?")
    Observable<TaskListData> getCopyTaskDatas(@FieldMap Map<String, String> praise);

    //事项详情
    @FormUrlEncoded
    @POST("inquireTaskDetail.json?")
    Observable<TaskData> getTaskDetailDatas(@FieldMap Map<String, String> praise);

    //同意
    @FormUrlEncoded
    @POST("flowToNextNode.json?")
    Observable<FeedBackResultBean> approvalTask(@FieldMap Map<String, String> praise);

    //签字区域
    @FormUrlEncoded
    @POST("inquireOaConfigDtlList.json?")
    Observable<BaseEntity<SignDtlData>> getDtlList(@FieldMap Map<String, String> praise);

    //白名单
    @FormUrlEncoded
    @POST("inquireWhiteListDetail.json?")
    Observable<WhiteData> whiteList(@FieldMap Map<String, String> praise);

    //获取帮助文件
    @FormUrlEncoded
    @POST("loadTaskConfig.json?")
    Observable<HelpFileBean> getHelpFile(@FieldMap Map<String, String> praise);

    //获取流转指定人
    @FormUrlEncoded
    @POST("inquireTaskFlowMember.json?")
    Observable<BaseEntity<FlowMemberData>> getFlowMember(@FieldMap Map<String, String> praise);

    //类型
    @FormUrlEncoded
    @POST("inquireTaskConfigList.json?")
    Observable<BaseEntity<TypeData>> getTypeDate(@FieldMap Map<String, String> praise);

    //获取流转部门或者个人
    @FormUrlEncoded
    @POST("inquireBackMember.json?")
    Observable<BaseEntity<BackMemberData>> getFlowType(@FieldMap Map<String, String> praise);

    //查询克隆任务详情
    @FormUrlEncoded
    @POST("inquireTaskCloneDetail.json?")
    Observable<BaseEntity<TaskMainBean>> inquireTaskCloneDetail(@FieldMap Map<String, String> praise);

    //判断年休假
    @FormUrlEncoded
    @POST("inquireTaskOfZdLeaveDays.json?")
    Observable<BaseEntity<AnnualLeaveBean>> inquireTaskOfZdLeaveDays(@FieldMap Map<String, String> praise);
}
